var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');


var schema = new mongoose.Schema({
    name      : String,
    password  : String,
    gender    : String,
    stature   : Number,
    weight    : Number,
    education : String,
    major     : Array,
    interests : Array,
    experience: {},
    date      : Date
});

schema.plugin(mongoosePaginate);

var Users = mongoose.model('Users',  schema);  // Model.paginate()

module.exports = Users;